<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    (function(x, f = () => x) {
        var x;
        var y = x;
        x = 2;
        return [x, y, f()];
    })(1)
</script>
</html>